//out:../css/index.css
@import url(./base.less);
body {
    background-color: #efefef;
    &::-webkit-scrollbar {
        width: 0;
    }
}
/* 顶栏 */
.header {
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(83, 115, 224);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    animation: toDown 1s;
    background-image: url(../images/headerImg.png);
     z-index: 1;
    .logo {
        width: 88px;
        height: 36px;
    }
    .right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .user {
            display: flex;
            align-items: center;
            justify-content: space-between;
            img {
                margin-right: 10px;
                width: 35px;
                height: 35px;
                border-radius: 50%;
            }
            .username {
                font-size: 16px;
                color: #fff;
            }
        }
        .logout {
            margin-left: 30px;
            display: block;
            display: flex;
            align-items: center;
            color: #fff;
            &:hover {
                color: rgb(255, 78, 78);
            }
            span {
                display: block;
                font-size: 15px;
                margin-left: 5px;
            }
        }
    }
}
@keyframes toDown{
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 左侧栏 */
.left {
    position: fixed;
    top: 60px;
    left: 0;
    height: 100%;
    background-color: #fff;
    overflow: auto;
    animation: toRight 1s;
    &::-webkit-scrollbar {
        width: 0;
    }
    ul {
        li {
            width: 167px;
            transition: all 0.2s;
            &:hover {
                background-color: rgb(239, 239, 239);
                a {
                    color: #5f84ff;
                }
            }
            &:first-child{
                a {
                    color: #5f84ff;
                    font-weight: 700;
                }
            }
            a {
                height: 56px;
                display: flex;
                justify-content: space-between;
                font-size: 14px;
                line-height: 56px;
                padding: 0px 20px 0px;
                div {
                    .iconfont {
                        display: inline-block;
                        margin-right: 5px;
                        font-size: 18px;
                    } 
                }
                .iconfont {
                    transition: all 0.3s;
                }
                
            }
            .secondFloor {
                height: 0px;
                overflow: hidden;
                width: 100%;
                transition: all 0.3s;
                li {
                    &:hover {
                        background-color: rgb(222, 222, 222);
                        a {
                            color: #5f84ff;
                        }
                    }
                    a {
                        display: block;
                        width: 100%;
                        height: 100%;
                        text-align: center;
                        color: #999;
                    }
                }
            }
        }
    }
}
@keyframes toRight {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* 主体 */
.box {
    overflow: auto;
    padding: 80px 20px 20px 188px;
    &::-webkit-scrollbar {
        width: 0;
    }
    .topBox {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        width: 100%;
        height: 498px;
        .leftBox {
            flex: 3;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            margin-right: 20px;
            .topBox2 {
                margin-bottom: 20px;
                flex: 1;
                display: flex;
                justify-content: space-between;
                .workOrderStatistics {
                    flex: 1;
                    border-radius: 20px;
                    background-color: #e9f3ff;
                    margin-right: 20px;
                    position: relative;
                    padding: 20px 20px 30px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    background-image: url(../images/task.png);
                    background-repeat: no-repeat;
                    background-position: 95% 95%;
                    .workTitle {
                        display: flex;
                        align-items: center;
                        h3 {
                            color: #333;
                            font-size: 16px;
                            margin-right: 10px;
                            font-weight: 700;
                        }
                        p {
                            color: #999;
                            font-size: 12px;
                        }
                    }
                    .workContent {
                        display: flex;
                        justify-content: space-evenly;
                        bottom: 0;
                        li {
                            h3 {
                                color: #072074;
                                font-size: 36px;
                                font-weight: 700;
                                text-shadow: 2px 4px 7px rgba(85, 132, 255, .5);
                            }
                            p {
                                color: #91a7dc;
                                font-size: 12px;
                            }
                        }
                    }
                }
                .salesStatistics {
                    flex: 1;
                    border-radius: 20px;
                    background-color: #fbefe8;
                    position: relative;
                    padding: 20px 20px 30px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    background-image: url(../images/sale.png);
                    background-repeat: no-repeat;
                    background-position: 95% 95%;
                    .salesTitle {
                        display: flex;
                        align-items: center;
                        h3 {
                            color: #333;
                            font-size: 16px;
                            margin-right: 10px;
                            font-weight: 700;
                        }
                        p {
                            color: #999;
                            font-size: 12px;
                        }
                    }
                    .salesContent {
                        display: flex;
                        justify-content: space-evenly;
                        bottom: 0;
                        li {
                            h3 {
                                color: #ff5757;
                                font-size: 36px;
                                font-weight: 700;
                                text-shadow: 2px 4px 7px rgba(255, 99, 85, .5);
                            }
                            p {
                                color: #de9690;
                                font-size: 12px;
                            }
                        }
                    }
                }
            }
            .bottomBox2 {
                flex: 2;
                padding: 20px;
                border-radius: 20px;
                background-color: #fff;
                display: flex;
                justify-content: space-between;
                .salesDataLeft{
                    .title {
                        display: flex;
                        align-items: center;
                        h3 {
                            color: #333;
                            font-size: 16px;
                            margin-right: 10px;
                            font-weight: 700;
                        }
                
                        p {
                            color: #999;
                            font-size: 12px;
                        }
                    }
                }
                .salesDataRight {
                    .title {
                        display: flex;
                        width: 129px;
                        height: 34px;
                        background-color: #e9f3ff5e;
                        border-radius: 10px;
                        justify-content: center;
                        align-items: center;
                        .Backboard {
                            position: absolute;
                            box-shadow: 0px 0px 5px -3px;
                            width: 37px;
                            height: 25px;
                            background-color: #fff;
                            border-radius: 7px;
                        }
                        a {
                            z-index: 1;
                            width: 37px;
                            height: 25px;
                            p {
                                color: #333;
                                font-size: 14px;
                                text-align: center;
                                line-height: 25px;
                            }
                        }
                    }
                    .salesData_Legend_Right {}
                }
            }
        }
        .rightBox {
            flex: 1;
            border-radius: 20px;
            margin-right: 20px;
            background-color: #fff;
            position: relative;
            padding: 20px 20px 30px;
            .productHotListTitle {
                display: flex;
                align-items: center;
                h3 {
                    color: #333;
                    font-size: 16px;
                    margin-right: 10px;
                    font-weight: 700;
                }
                p {
                    color: #999;
                    font-size: 12px;
                }
            }
            .productHotListContent {
                margin-top: 20px;
                li {
                    display: flex;
                    justify-content: space-between;
                    margin-bottom: 23px;
                    .num {
                        width: 20px;
                        height: 20px;
                        display: block;
                        background-image: url(../images/list.png);
                        background-position: center;
                        background-repeat: no-repeat;
                        background-size: contain;
                        text-align: center;
                        line-height: 16px;
                        color: #e9b499;
                    }
                    &:nth-child(1){
                        .num {
                            color: #8e5900;
                            background-image: url(../images/No1.png);
                        }
                    }
                    &:nth-child(2) {
                        .num {
                            color: #494949;
                            background-image: url(../images/No2.png);
                        }
                    }
                    &:nth-child(3) {
                        .num {
                            color: #cf6d3d;
                            background-image: url(../images/No3.png);
                        }
                    }
                    div {
                        display: flex;
                        flex: 1;
                        justify-content: space-between;
                        margin-left: 20px;
                        p {
                            color: #333;
                            font-size: 14px;
                        }
                        span {
                            color: #737589;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
    .bottomBox {
        display: flex;
        justify-content: space-between;
        height: 313px;
        width: 100%;
        .cooperationPoints {
            border-radius: 20px;
            background-color: #fff;
            margin-right: 20px;
            flex: 2;
        }
        .abnormalEquipment {
            flex: 1;
            border-radius: 20px;
            background-color: #fff;
        }
    }
}
